package org.erepublik.company;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * Klasa reprezentujaca firme
 *
 * @author Kacper Gorski 'Railman' railman85@gmail.com
 */
@Entity
public class Company {

    @Id
    private int id;
    private boolean active=true;
    private ECountry country;
    private long updateTime;
    private String name;
    
    public Company() {    }
    
    public Company(int id2, long time, ECountry country, String name) {
        id = id2;
        updateTime = time;
        this.setName(name);
        this.setCountry(country);
    }
    public void setId(int id) {
        this.id = id;
    }
    public int getId() {
        return id;
    }
    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }
    public long getUpdateTime() {
        return updateTime;
    }
    public void setCountry(ECountry country) {
        this.country = country;
    }
    public ECountry getCountry() {
        return country;
    }

    public void setActive(boolean active) {
        this.active = active;
    }
    public boolean isActive() {
        return active;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getName() {
        return name;
    }
    
}
